package com.aisoar.magicsoar.api.controller;

import com.aisoar.magicsoar.api.common.base.ApiResult;
import com.aisoar.magicsoar.api.service.PlaybookService;
import com.aisoar.magicsoar.storage.param.PlaybookParam;
import jakarta.annotation.Resource;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
@RequestMapping("/test")
public class TestController {
    @Resource
    PlaybookService playbookService;
    @PostMapping("/create/playbook")
    public ApiResult<String> createPlaybook(@RequestBody PlaybookParam param){
        return playbookService.parseXmlPlayBook(param);
    }

}
